package com.xiaoxx.model.vo.sys;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.xiaoxx.common.base.BaseVo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.List;

/**
 * <p>
 * base--sys--菜单管理
 * </p>
 *
 * @author HX
 * @since 2023-07-27
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "SysMenuVo", description = "菜单列表vo")
public class SysMenuVo extends BaseVo implements Serializable {

    private static final long serialVersionUID = 1L;
    @ApiModelProperty(value = "指定父id")
    @JsonIgnore
    private String pid;

    @ApiModelProperty(value = "菜单名")
    private String name;

    @ApiModelProperty(value = "菜单url")
    private String url;

    @ApiModelProperty(value = "图标")
    private String icon;

    @ApiModelProperty(value = "排序")
    private Integer sort;

    @ApiModelProperty(value = "禁用(0-启用 1-禁用)")
    private Integer disable;

    @ApiModelProperty(value = "类型(0-目录 1-菜单)")
    private Integer type;

    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    @ApiModelProperty(value = "子菜单")
    private List<SysMenuVo> childrens;
}
